<?php

/**
 * Copyright              [HD框架] (C)2011-2012 houdunwang ，Inc. 
 * Encoding               UTF-8 
 * @author                向军
 * Link                   http://www.houdunwang.com       
 * E-mail                 houdunwangxj@gmail.com
 */
class userviewModel extends viewModel {

    public $table = "user";
    public $view = array(
        "user_role" => array(
            "join_type" => "inner",
            "on" => "user.uid = user_role.uid",
        ),
        "role" => array(
            "join_type" => "inner",
            "on" => "user_role.rid=role.rid"
        )
    );

}
//select from hd_user inner join user_role on user.uid=user_role.uid inner join role user_role.rid=role.rid
?>
